<?php

function generaLayoutGridJS($taula){

$variable = "
var ".$taula."_g = new ".$taula."Grid();

var ".$taula."GridPanel = new Ext.Panel({
	layout:'fit',
	title: '$taula Grid',
	items: ".$taula."_g
});

var ".$taula."TabPanel = new Ext.TabPanel({
	title: '$taula',
	id: '$taula-panel',
	activeTab: 0,
	border: false,
	layoutOnTabChange: true,
	xtype: 'tabpanel',
	items: [".$taula."GridPanel]
});	
";

return $variable;
}


?>